#include <iostream>
#include <string>
#include <queue>
using namespace std;

//容器 queue 队列
void my_queue()
{
	queue<int> q;
	//入队
	for (int i = 0; i < 10; i++)
	{
		q.push(i);
	}
	cout << "队列大小:" << q.size() << endl;
	//遍历(先进先出)
	while (!(q.empty()))
	{
		cout << "队列头元素:" << q.front() << " ";
		q.pop();//移除队首元素
	}
}
void main5()
{
	my_queue();
	system("pause");
	return;
}